package easymusic.baseinterface;


public interface IMediaService extends IBasicService{
	public enum State{
		ready,
		playing,
		stop,
		pause,
		uninitialized,
	}
	public interface ICallback{
		void updateState(int currentPosition, State eState);
	}
	ErrorCode load(String strMediaFullPath);
	ErrorCode play();
	void pause();
	void stop();
	State getState();
	void registerCallback(ICallback callback);
	int getDuration();
	boolean isPlaying();
	void seek(int iProgress);
}
